<!doctype html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>购物车列表</title>
    <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0">
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="apple-mobile-web-app-status-bar-style" content="black">
    <meta name="format-detection" content="telephone=no">
    <link rel="stylesheet" type="text/css" href="../css/reset.css">
    <link rel="stylesheet" type="text/css" href="../css/font-awesome.min.css">
    <link rel="stylesheet" type="text/css" href="../css/main.css">
    <link rel="stylesheet" type="text/css" href="../css/child.css">
    <link rel="stylesheet" type="text/css" href="css/bootstrap.min.css">
</head>
<body>
<header id="header"></header>
<div class="cart-list-wp">
    <div id="cart-list-wp"></div>
    <script type="text/html" id="cart-list">
        <% if(shoppingCart.length >0){%>
        <ul class="cart-list">
            <% for (var i = 0;i<shoppingCart.length ; i++){%>
                <li class="cart-list-item">
                    <div class="cart-litem-wp clearfix">
                        <a class="cart-litemw-imgwp"
                           href="<%=WapSiteUrl%>/tmpl/product_detail.html?goods_id=<%=shoppingCart[i].cpackage.commodity.id%>">
                            <img src="<%=shoppingCart[i].cpackage.commodity.photo%>"/>
                        </a>

                        <div class="cart-litemw-cnt" cart_id="<%=shoppingCart[i].cpackage.id%>">
                            <a class="cart-litemwc-pdname"
                               href="<%=WapSiteUrl%>/tmpl/product_detail.html?goods_id=<%=shoppingCart[i].cpackage.commodity.id%>">
                                <%=shoppingCart[i].cpackage.title%>
                            </a>

                            <p class="mt5">
                                商品单价：￥<span class="cellPrice"><%=shoppingCart[i].cpackage.money%><span>
                           <% if(shoppingCart[i].cpackage.advanceMoney) { %>
                                订金：￥<span class="cellPrice"><%=shoppingCart[i].cpackage.advanceMoney%></span>
                            <% } %>
                            </p>

                            <p class="mt5">
                                商品总价：￥<span class="goods-total-price"><%=shoppingCart[i].cpackage.money*shoppingCart[i].num%></span>
                            </p>


                            <p class="cart-litemwc-pdcount clearfix mt5">
                                        <span class="minus-wp fleft">
                                            <span class="i-minus"></span>
                                        </span>
                                <input type="text" readonly class="buy-num  fleft" value="<%=shoppingCart[i].num%>"/>
                                        <span class="add-wp fleft">
                                            <span class="i-add"></span>
                                        </span>
                            </p>
                        </div>
                    </div>
                    <span class="cart-list-del" cart_id="<%=shoppingCart[i].cpackage.id%>">
                        <span class="i-del"></span>
                    </span>
                </li>
                <%}%>
                <li class="cart-list-oitem mt10">
                    商品总金额：<span class="clr-d94 total_price">￥<%=sum%></span>
                </li>
                <li>
                    <a href="javascript:void(0)" class="goto-settlement mt10">去结算</a>
                </li>
            </ul>
        <%}else{%>
        <div class="no-record m10">
            暂无记录
        </div>
        <%}%>
    </script>
</div>
</div>
<div id="footer"></div>
<script type="text/javascript" src="../js/zepto.min.js"></script>
<!-- <script type="text/javascript" src="../js/jquery.min.js"></script> -->
<script type="text/javascript" src="../js/config.js"></script>
<script type="text/javascript" src="../js/template.js"></script>
<script type="text/javascript" src="../js/common.js"></script>
<script type="text/javascript" src="../js/simple-plugin.js"></script>
<!--<script type="text/javascript" src="../js/tmpl/common-top.js"></script>-->
<script type="text/javascript" src="../js/tmpl/footer.js"></script>
<script type="text/javascript" src="../js/tmpl/cart-list.js"></script>
</body>
</html>